﻿using BCDto.Common.BankCardDetection;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.CommonService.BankCardDetection
{
    /// <summary>
    /// 银行卡类型识别服务
    /// </summary>
    public interface IBankCardPatternService
    {
        /// <summary>
        /// 获取全部银行卡识别正则表达式
        /// </summary>
        /// <returns></returns>
        IEnumerable<BankCardPatternDto> ALL();

        /// <summary>
        /// 匹配银行卡类型
        /// </summary>
        /// <param name="bankCardNo">银行卡号</param>
        /// <returns></returns>
        BankCardTypeDto Match(string bankCardNo);

        BankCardTypeDto AlipayBankCardMatch(string bankCardNo);
    }
}
